.class public Lcom/htc/android/footprints/view/Snapshot;
.super Landroid/widget/LinearLayout;
.source "Snapshot.java"


# static fields
.field private static final TAG:Ljava/lang/String; = "Snapshot"


# instance fields
.field private mAddress:Landroid/widget/TextView;

.field private mDateTime:Landroid/widget/TextView;

.field private mFootprintImage:Landroid/widget/ImageView;

.field private mLatitude:Landroid/widget/TextView;

.field private mLongitude:Landroid/widget/TextView;

.field private mPhone:Landroid/widget/TextView;

.field private mPostcardPreview:Landroid/widget/LinearLayout;

.field private mRatingBar:Landroid/widget/RatingBar;

.field private mSnapshot:Landroid/graphics/Bitmap;

.field private mTitle:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    const/4 v0, 0x0

    .line 45
    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 32
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mPostcardPreview:Landroid/widget/LinearLayout;

    .line 33
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mFootprintImage:Landroid/widget/ImageView;

    .line 34
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mTitle:Landroid/widget/TextView;

    .line 35
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mDateTime:Landroid/widget/TextView;

    .line 36
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mPhone:Landroid/widget/TextView;

    .line 37
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mLatitude:Landroid/widget/TextView;

    .line 38
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mLongitude:Landroid/widget/TextView;

    .line 39
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mAddress:Landroid/widget/TextView;

    .line 40
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mRatingBar:Landroid/widget/RatingBar;

    .line 41
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mSnapshot:Landroid/graphics/Bitmap;

    .line 46
    invoke-direct {p0}, Lcom/htc/android/footprints/view/Snapshot;->initView()V

    .line 47
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .parameter "context"
    .parameter "attrs"

    .prologue
    const/4 v0, 0x0

    .line 50
    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 32
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mPostcardPreview:Landroid/widget/LinearLayout;

    .line 33
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mFootprintImage:Landroid/widget/ImageView;

    .line 34
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mTitle:Landroid/widget/TextView;

    .line 35
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mDateTime:Landroid/widget/TextView;

    .line 36
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mPhone:Landroid/widget/TextView;

    .line 37
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mLatitude:Landroid/widget/TextView;

    .line 38
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mLongitude:Landroid/widget/TextView;

    .line 39
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mAddress:Landroid/widget/TextView;

    .line 40
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mRatingBar:Landroid/widget/RatingBar;

    .line 41
    iput-object v0, p0, Lcom/htc/android/footprints/view/Snapshot;->mSnapshot:Landroid/graphics/Bitmap;

    .line 51
    invoke-direct {p0}, Lcom/htc/android/footprints/view/Snapshot;->initView()V

    .line 52
    return-void
.end method

.method private bitmapToByteArray(Landroid/graphics/Bitmap;)[B
    .locals 4
    .parameter "src"

    .prologue
    .line 141
    new-instance v1, Ljava/io/ByteArrayOutputStream;

    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getRowBytes()I

    move-result v2

    invoke-direct {v1, v2}, Ljava/io/ByteArrayOutputStream;-><init>(I)V

    .line 142
    .local v1, os:Ljava/io/ByteArrayOutputStream;
    invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v0

    .line 143
    .local v0, array:[B
    sget-object v2, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v3, 0x50

    invoke-virtual {p1, v2, v3, v1}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z

    .line 144
    return-object v0
.end method

.method private decodeJpeg(Ljava/lang/String;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "file"

    .prologue
    .line 164
    const/4 v0, 0x0

    .line 165
    .local v0, bitmap:Landroid/graphics/Bitmap;
    return-object v0
.end method

.method private initView()V
    .locals 4

    .prologue
    .line 55
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/Snapshot;->getContext()Landroid/content/Context;

    move-result-object v2

    const-string v3, "layout_inflater"

    invoke-virtual {v2, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    .line 58
    .local v0, inflater:Landroid/view/LayoutInflater;
    const v2, 0x7f030026

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    .line 61
    .local v1, layout:Landroid/view/ViewGroup;
    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/view/Snapshot;->addView(Landroid/view/View;)V

    .line 63
    const v2, 0x7f0c0090

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/Snapshot;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    iput-object v2, p0, Lcom/htc/android/footprints/view/Snapshot;->mPostcardPreview:Landroid/widget/LinearLayout;

    .line 64
    const v2, 0x7f0c009b

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/Snapshot;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    iput-object v2, p0, Lcom/htc/android/footprints/view/Snapshot;->mFootprintImage:Landroid/widget/ImageView;

    .line 65
    const v2, 0x7f0c009c

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/Snapshot;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/view/Snapshot;->mTitle:Landroid/widget/TextView;

    .line 66
    const v2, 0x7f0c009d

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/Snapshot;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/view/Snapshot;->mDateTime:Landroid/widget/TextView;

    .line 67
    const v2, 0x7f0c009e

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/Snapshot;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/view/Snapshot;->mPhone:Landroid/widget/TextView;

    .line 68
    const v2, 0x7f0c00a0

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/Snapshot;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/view/Snapshot;->mLatitude:Landroid/widget/TextView;

    .line 69
    const v2, 0x7f0c00a1

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/Snapshot;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/view/Snapshot;->mLongitude:Landroid/widget/TextView;

    .line 70
    const v2, 0x7f0c00a2

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/Snapshot;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/view/Snapshot;->mAddress:Landroid/widget/TextView;

    .line 71
    const v2, 0x7f0c009f

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/Snapshot;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/RatingBar;

    iput-object v2, p0, Lcom/htc/android/footprints/view/Snapshot;->mRatingBar:Landroid/widget/RatingBar;

    .line 73
    iget-object v2, p0, Lcom/htc/android/footprints/view/Snapshot;->mFootprintImage:Landroid/widget/ImageView;

    new-instance v3, Lcom/htc/android/footprints/view/Snapshot$1;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/view/Snapshot$1;-><init>(Lcom/htc/android/footprints/view/Snapshot;)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 80
    return-void
.end method

.method private saveBitmapToJpeg(Landroid/graphics/Bitmap;)V
    .locals 7
    .parameter "src"

    .prologue
    .line 127
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v5

    invoke-virtual {v5}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "/footprints/thumbnails"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 130
    .local v3, path:Ljava/lang/String;
    const/4 v1, 0x0

    .line 133
    .local v1, fos:Ljava/io/FileOutputStream;
    :try_start_0
    new-instance v2, Ljava/io/FileOutputStream;

    new-instance v4, Ljava/io/File;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "/snapshot.jpg"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-direct {v2, v4}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .end local v1           #fos:Ljava/io/FileOutputStream;
    .local v2, fos:Ljava/io/FileOutputStream;
    move-object v1, v2

    .line 137
    .end local v2           #fos:Ljava/io/FileOutputStream;
    .restart local v1       #fos:Ljava/io/FileOutputStream;
    :goto_0
    sget-object v4, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v5, 0x50

    invoke-virtual {p1, v4, v5, v1}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z

    .line 138
    return-void

    .line 134
    :catch_0
    move-exception v4

    move-object v0, v4

    .line 135
    .local v0, e1:Ljava/io/FileNotFoundException;
    invoke-virtual {v0}, Ljava/io/FileNotFoundException;->printStackTrace()V

    goto :goto_0
.end method

.method private saveByteArrayToSD(Ljava/lang/String;[B)V
    .locals 6
    .parameter "filename"
    .parameter "jpegData"

    .prologue
    .line 148
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v5

    invoke-virtual {v5}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "/footprints/thumbnails"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 152
    .local v3, path:Ljava/lang/String;
    :try_start_0
    new-instance v1, Ljava/io/File;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "/"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v1, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 153
    .local v1, file:Ljava/io/File;
    new-instance v2, Ljava/io/FileOutputStream;

    invoke-direct {v2, v1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    .line 154
    .local v2, fos:Ljava/io/FileOutputStream;
    invoke-virtual {v2, p2}, Ljava/io/FileOutputStream;->write([B)V

    .line 155
    invoke-virtual {v2}, Ljava/io/FileOutputStream;->flush()V

    .line 156
    invoke-virtual {v2}, Ljava/io/FileOutputStream;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 161
    .end local v1           #file:Ljava/io/File;
    .end local v2           #fos:Ljava/io/FileOutputStream;
    :goto_0
    return-void

    .line 158
    :catch_0
    move-exception v4

    move-object v0, v4

    .line 159
    .local v0, e:Ljava/lang/Exception;
    const-string v4, "Snapshot"

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method


# virtual methods
.method public getSnapshot()Landroid/graphics/Bitmap;
    .locals 8

    .prologue
    .line 116
    iget-object v5, p0, Lcom/htc/android/footprints/view/Snapshot;->mPostcardPreview:Landroid/widget/LinearLayout;

    invoke-virtual {v5}, Landroid/widget/LinearLayout;->getHeight()I

    move-result v0

    .line 117
    .local v0, height:I
    iget-object v5, p0, Lcom/htc/android/footprints/view/Snapshot;->mPostcardPreview:Landroid/widget/LinearLayout;

    invoke-virtual {v5}, Landroid/widget/LinearLayout;->getWidth()I

    move-result v4

    .line 118
    .local v4, width:I
    iget-object v5, p0, Lcom/htc/android/footprints/view/Snapshot;->mPostcardPreview:Landroid/widget/LinearLayout;

    invoke-virtual {v5}, Landroid/widget/LinearLayout;->getTop()I

    move-result v3

    .line 119
    .local v3, top:I
    sget-object v5, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;

    invoke-static {v4, v0, v5}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 121
    .local v1, previewBitmap:Landroid/graphics/Bitmap;
    new-instance v2, Landroid/graphics/Canvas;

    invoke-direct {v2, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 122
    .local v2, previewCanvas:Landroid/graphics/Canvas;
    iget-object v5, p0, Lcom/htc/android/footprints/view/Snapshot;->mPostcardPreview:Landroid/widget/LinearLayout;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    invoke-virtual {p0, v2, v5, v6, v7}, Lcom/htc/android/footprints/view/Snapshot;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    .line 123
    return-object v1
.end method

.method public initPostcard(Lcom/htc/android/footprints/vo/Footprint;)V
    .locals 8
    .parameter "footprint"

    .prologue
    .line 83
    iget-object v5, p1, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    if-eqz v5, :cond_0

    .line 84
    iget-object v5, p1, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    invoke-static {v5}, Landroid/graphics/drawable/Drawable;->createFromPath(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    .line 85
    .local v2, drawable:Landroid/graphics/drawable/Drawable;
    if-eqz v2, :cond_0

    .line 86
    iget-object v5, p0, Lcom/htc/android/footprints/view/Snapshot;->mFootprintImage:Landroid/widget/ImageView;

    invoke-virtual {v5, v2}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 90
    .end local v2           #drawable:Landroid/graphics/drawable/Drawable;
    :cond_0
    iget-object v5, p0, Lcom/htc/android/footprints/view/Snapshot;->mTitle:Landroid/widget/TextView;

    iget-object v6, p1, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 93
    new-instance v0, Ljava/text/SimpleDateFormat;

    invoke-virtual {p0}, Lcom/htc/android/footprints/view/Snapshot;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f0a0053

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v0, v5}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 95
    .local v0, dateFormat:Ljava/text/SimpleDateFormat;
    new-instance v5, Ljava/util/Date;

    iget-wide v6, p1, Lcom/htc/android/footprints/vo/Footprint;->mCreateTime:J

    invoke-direct {v5, v6, v7}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v0, v5}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    .line 96
    .local v1, dateText:Ljava/lang/String;
    iget-object v5, p0, Lcom/htc/android/footprints/view/Snapshot;->mDateTime:Landroid/widget/TextView;

    invoke-virtual {v5, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 98
    iget-object v5, p0, Lcom/htc/android/footprints/view/Snapshot;->mPhone:Landroid/widget/TextView;

    iget-object v6, p1, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 100
    iget v5, p1, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-static {v5}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLat(I)Ljava/lang/String;

    move-result-object v3

    .line 101
    .local v3, lat:Ljava/lang/String;
    iget v5, p1, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-static {v5}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLon(I)Ljava/lang/String;

    move-result-object v4

    .line 102
    .local v4, lon:Ljava/lang/String;
    iget-object v5, p0, Lcom/htc/android/footprints/view/Snapshot;->mLatitude:Landroid/widget/TextView;

    invoke-virtual {v5, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 103
    iget-object v5, p0, Lcom/htc/android/footprints/view/Snapshot;->mLongitude:Landroid/widget/TextView;

    invoke-virtual {v5, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 105
    iget-object v5, p0, Lcom/htc/android/footprints/view/Snapshot;->mAddress:Landroid/widget/TextView;

    iget-object v6, p1, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 106
    iget-object v5, p0, Lcom/htc/android/footprints/view/Snapshot;->mRatingBar:Landroid/widget/RatingBar;

    iget v6, p1, Lcom/htc/android/footprints/vo/Footprint;->mRate:I

    int-to-float v6, v6

    invoke-virtual {v5, v6}, Landroid/widget/RatingBar;->setRating(F)V

    .line 107
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/Snapshot;->invalidate()V

    .line 108
    return-void
.end method

.method public takeSnapshot()V
    .locals 1

    .prologue
    .line 111
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/Snapshot;->getSnapshot()Landroid/graphics/Bitmap;

    move-result-object v0

    .line 112
    .local v0, bitmap:Landroid/graphics/Bitmap;
    invoke-direct {p0, v0}, Lcom/htc/android/footprints/view/Snapshot;->saveBitmapToJpeg(Landroid/graphics/Bitmap;)V

    .line 113
    return-void
.end method
